package cool.mtc.minghe.data.model.sys.org.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 明河
 */
@Schema(description = "单位字典树")
@Data
public class OrgDictDTO implements OrgTreeSupport {

    private Long orgId;
    private String orgName;

    @JsonIgnore
    private Long orgParentId;

    @JsonIgnore
    @Schema(description = "级别，子级  =  父级 + 1")
    private int level;

    private List<OrgListDTO> children = new ArrayList<>();
}
